package com.itheima.d4_abstract_template_method.examplePractice;

public class Coder extends People{
    private String position;

    public Coder() {
    }

    public Coder(String name, int age, String skill) {
        super(name, age);
        this.position = skill;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    @Override
    public void work() {
        System.out.println("我的主要工作是负责" + position);
    }
}
